<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul id="container"></ul>

    <script>
        let ul = document.getElementById("container");

        let total = 100000
        let now =  Date.now()
        for(let i=0 ;i<total;i++){
            let li = document.createElement("li");
            li.innerText = ~~(Math.random() * total);
            ul.appendChild(li);
        }
        console.log('js执行时间：',Date.now()-now);

        setTimeout(()=>{
            console.log('渲染',Date.now()-now);
            
        },0)
        
    </script>
</body>
</html>